package JavaSE.Class10.Shape;

public class Text {
    public static void draw(Shape shape){
        shape.show();
    }
    public static void main(String[] args) {
        Circle circle = new Circle();
        Rect rect= new Rect();
        Triangle triangle = new Triangle();
        draw(rect);
        draw(circle);
        draw(triangle);
        System.out.println("=========");
        Shape[] shapes={circle,rect,triangle,circle};
//        for(Shape shape:shapes){
//            shape.show();
//        }
        for(int i=0;i<shapes.length;i++){
            shapes[i].show();
        }

    }
}
